/**
* @file zksensorcore_errorno.h
* @brief zksensorcore error code constant
* @version 1.0
* @author scar.chen@zkteco.com
* @date 2019-12-26
* @remarks
*
*/

#ifndef ZKSENSORCORE_ERRORNO_H
#define ZKSENSORCORE_ERRORNO_H

// error code define
// -1000~0 libusb error
#define ZKSENSOR_ERROR_BEGIN        -1000
#define ZKSENSOR_ERROR_CODE(code)   (-1000+code)
// success
#define ZKSENSOR_ERR_OK             0
// fail
#define ZKSENSOR_ERR_FAIL           ZKSENSOR_ERROR_CODE(-1)
// null pointer
#define ZKSENSOR_ERR_NULL_POINTER   ZKSENSOR_ERROR_CODE(-2)
// invalid param
#define ZKSENSOR_ERR_INVALID_PARAM  ZKSENSOR_ERROR_CODE(-3)
// invalid handle
#define ZKSENSOR_ERR_INVALID_HANDLE ZKSENSOR_ERROR_CODE(-4)
//  not support
#define ZKSENSOR_ERR_NOT_SUPPORT    ZKSENSOR_ERROR_CODE(-5)

#endif
